﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace Quiz_Builder.ViewModel.TestTypes
{
    [Serializable]
    public class AnswerRadioItem : BaseViewModel
    {
        #region Fields
        private bool _isChecked;
        private string _text;
        #endregion 

        #region Properties
        [XmlAttribute]
        public bool IsChecked
        {
            get { return _isChecked; }
            set
            {
                _isChecked = value;
                RaisePropertyChanged("IsChecked");
            }
        }
        [XmlAttribute]
        public string Text
        {
            get { return _text; }
            set
            {
                _text = value;
                RaisePropertyChanged("Text");
            }
        }
        #endregion

        //public AnswerRadioItem(bool isChecked, string text)
        //{
        //    IsChecked = isChecked;
        //    Text = text;
        //}
    }
}
